import yaml
class ReadYaml():
    def read_yaml():
        with open('data.yaml', 'r',encoding='utf-8') as ymlfile:
            cfg = yaml.load(ymlfile, Loader=yaml.FullLoader)
            url = cfg["url"]
            return cfg